package com.neuedu.web.controller;

import com.neuedu.web.common.BaseMethodController;
import com.neuedu.web.po.Classify;


import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 金山
 * 项目：his
 * site: https://blog.fulfill.com.cn
 * 描述  Dept接口
 * @data 2024-11-21 14:21:592
 */
@WebServlet(urlPatterns = "/cate/*")
public class CateController extends BaseMethodController {

    public static final List<Classify> list = new ArrayList<>();
    public static final String[]  cates = new String[]{"家电","手机","厨卫大电","冰箱","洗衣机","办公用品","智能数码","食品酒饮","家装建材","母婴用品","个护清洁"};
    static {

        for (int i = 0; i < cates.length; i++) {
            list.add(i,new Classify(cates[i]));
        }
    }

    /**
     * http://127.0.0.1:8080/ec-server/cate/list
     * @param req
     * @param res
     * @return
     */
    public List<Classify> list(HttpServletRequest req, HttpServletResponse res){

        return list;
    }



}
